package com.jsb.laundry.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单物流表
 * @TableName jsb_orders_fulfillment
 */
@TableName(value ="jsb_orders_fulfillment")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "JsbOrdersFulfillment对象",description = "订单物流数据")
public class JsbOrdersFulfillment implements Serializable {
    @ApiModelProperty(value = "自增id", dataType = "int")
    @TableId(type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "订单编号", dataType = "string")
    private String orderId;

    @ApiModelProperty(value = "物流编号", dataType = "string")
    private String trackingNumber;

    @ApiModelProperty(value = "物流公司", dataType = "string")
    private String trackingCompany;


    @ApiModelProperty(value = "物流公司编码", dataType = "string")
    private String trackingCode;

    @ApiModelProperty(value = "订单物流方向，1 取；2 送", dataType = "int")
    private int trackingDirection;

    @ApiModelProperty(value = "骑手id", dataType = "string")
    private String trackingCarrierId;

    @ApiModelProperty(value = "取件地址", dataType = "string")
    private String pickupAddress;

    @ApiModelProperty(value = "送货地址", dataType = "string")
    private String deliveryAddress;

    @ApiModelProperty(value = "客户姓名", dataType = "string")
    private String customerName;

    @ApiModelProperty(value = "客户电话", dataType = "string")
    private String customerTel;

    @ApiModelProperty(value = "创建时间", dataType = "date")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间", dataType = "date")
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}